package com.demo.core.dao.impl;

import com.demo.core.dao.FormItemExtendDao;
import com.demo.core.dao.impl.base.PageCoreDaoSupport;
import com.demo.core.model.FormItemExtend;
import com.demo.core.model.support.GeneralExecuteModel;

/**
 * 自定义表单项扩展属性数据访问层实现类
 * 
 * @author ryuu.kk
 */
public class FormItemExtendDaoImpl extends PageCoreDaoSupport<FormItemExtend, Long> implements FormItemExtendDao {
	/**
	 * 自定义表单空间 
	 */
	protected final static String SQLMAP_NAME_SPACE = "formItemExtendSpace.";
	/**
	 * 数据库的表名
	 */
	protected final static String TABLE_NAME = "T_CORE_FORM_ITEM_EXTEND";
	/**
	 * 数据库表的主键名称
	 */
	protected final static String TABLE_PK_NAME = "ID";
	
	@Override
	protected String nameSpace() {
		return model.getNameSpace();
	}

	@Override
	protected void doInit(GeneralExecuteModel<Long> model) {
		model.setPk(TABLE_PK_NAME);
		model.setTable(TABLE_NAME);
		model.setNameSpace(SQLMAP_NAME_SPACE);
	}
}